//
//  SDMessageListData.m
//  SKinDiary
//
//  Created by pcyang on 16/7/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import "SDMessageListData.h"
#import "SDMessageItem.h"

@implementation SDMessageListData
-(NSString*)getRequestUrl
{
    return [NSString stringWithFormat:@"%@/message",[[SDServerSwitchManager sharedInstance] getServerUrl]];
}

- (id)resetWithResponseModel:(id)data
{
    if([data isKindOfClass:[NSDictionary class]])
    {
        _messageList = [SDMessageItem modelsWithInfos:[data objectForKey:@"Messages"]];
    }
    
    return data;
}
@end
